package com.jk.dingshi;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class DingSQ {


    public static void main(String[] args) {
        Timer timer = new Timer();
        Date date = new Date();

            timer.schedule(new myTest(),date);


    }

}

class myTest extends TimerTask {
    @Override
    public void run() {
//你要执行的任务
        System.out.println("aaa");
    }

}